<?php
namespace app\admin\controller;
use think\Controller;
use think\Db;
class Base extends Controller
{
   public function _initialize()
   {
       if(!cookie('user')||cookie('user')['status']!=0)
       {
          return $this->success("您没有进入该页面权限，请先登录",'index/index/login');
       }
   }
}